package lab02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by 123 on 2017/12/29.
 */
public class Test27 {
    public static void main(String[] args) {

        System.out.println("请从键盘输入整数：");
        Scanner sc = new Scanner(System.in);
        try {
            int a = sc.nextInt();
            System.out.println("你输入的数是：" + a);
        }catch(InputMismatchException e){
            System.out.println("你输入的数不是INT型整数！");
        }

    }

}
